package com.avilyne.rest.model;

import javax.xml.bind.annotation.XmlRootElement;


// Page class
@SuppressWarnings("serial")
@XmlRootElement
public class Page extends ObjectStore {
	public static final String TAG = "page";

	public int id = -1;
	public int bookId = -1;
	public int page = 0;
	public String title = "";
	public String content = "";

	public Page() {

	}
	
	public Page(int id,int bookId, int page,String title, String content) {
		this.id = id;
		this.bookId = bookId;
		this.page = page;
		this.content = content;
		this.title = title;
	}
	
	public static Page createDataSample(int i){
		return new Page(i,i,  i, "Chuong: "+i, "Server: This is content of chapter. It is verrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrry loooooooooooooooooooooooooong");
	}
}